package zhengyanze.com.aipoemmax.guide.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * 古诗的bean
 * Created by MrZheng on 2017/7/20.
 */

public class PoemBean implements Parcelable{
    String title;
    String author;
    String content;
    String link;

    public PoemBean(String title, String author, String content, String link) {
        this.title = title;
        this.author = author;
        this.content = content;
        this.link = link;
    }

    protected PoemBean(Parcel in) {
        title = in.readString();
        author = in.readString();
        content = in.readString();
        link = in.readString();
    }

    public static final Creator<PoemBean> CREATOR = new Creator<PoemBean>() {
        @Override
        public PoemBean createFromParcel(Parcel in) {
            return new PoemBean(in);
        }

        @Override
        public PoemBean[] newArray(int size) {
            return new PoemBean[size];
        }
    };

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(title);
        parcel.writeString(author);
        parcel.writeString(content);
        parcel.writeString(link);
    }


}
